import requests
from config import url, headers_web


class Organization:
    def __init__(self):
        self.url = url
        self.headers = headers_web

    @classmethod
    def get_organization_list(cls, url: str, params=None, headers=headers_web):
        """
        @Summary:接口-获取所有组织机构信息
        @Description:调用方：1、教研室管理平台
        :param url:
        :param params:
        :param headers:
        """
        url = url + "/authoritycontrolplatformapi/api/v1/organization/list"
        r = requests.get(url=url, headers=headers, params=params)
        return r
